package com.rxt.thermopro.ui.fragment

import android.annotation.SuppressLint
import android.os.Bundle
import com.app.common.base.BaseFragment
import com.app.common.viewmodel.BaseViewModel
import com.rxt.thermopro.BuildConfig
import com.rxt.thermopro.R
import kotlinx.android.synthetic.main.fragment_about.*

class AboutFragment : BaseFragment<BaseViewModel>() {

    companion object {
        fun newInstance(): AboutFragment {
            return AboutFragment()
        }
    }

    override fun layoutId(): Int {
        return R.layout.fragment_about
    }

    @SuppressLint("SetTextI18n")
    override fun initView(savedInstanceState: Bundle?) {
        backButton.setOnClickListener {
            requireActivity().onBackPressed()
        }

        versionName.text = "V" + BuildConfig.VERSION_NAME

    }
}